package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 二维码对象 qrcode
 *
 * @author ruoyi
 * @date 2025-05-07
 */
public class Qrcode extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /**
     * 生成数量
     * **/
    private Integer num;
    /** 二维码id */
    private Long qrcodeId;
    /**
     * 默认null 1， 双布局
     * 2 单布局
     * **/
    private Integer qrcodeTemplate;

    /** 图片存储位置 */
    @Excel(name = "图片存储位置")
    private String imagePath;

    /** 积分 */
    @Excel(name = "积分")
    private Long score;

    /** 状态（0正常 1停用 2已经使用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用,2=已经使用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;
    private List<Long> ids;

    public List<Long> getIds() {
        return ids;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }

    public Integer getQrcodeTemplate() {
        return qrcodeTemplate;
    }

    public void setQrcodeTemplate(Integer qrcodeTemplate) {
        this.qrcodeTemplate = qrcodeTemplate;
    }

    /**
     * 是否打印
     */
    private Integer print;
    private Long printId;

    public Long getPrintId() {
        return printId;
    }

    public void setPrintId(Long printId) {
        this.printId = printId;
    }

    public Integer getPrint() {
        return print;
    }

    public void setPrint(Integer print) {
        this.print = print;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public void setQrcodeId(Long qrcodeId)
    {
        this.qrcodeId = qrcodeId;
    }

    public Long getQrcodeId()
    {
        return qrcodeId;
    }

    public void setImagePath(String imagePath)
    {
        this.imagePath = imagePath;
    }

    public String getImagePath()
    {
        return imagePath;
    }

    public void setScore(Long score)
    {
        this.score = score;
    }

    public Long getScore()
    {
        return score;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("qrcodeId", getQrcodeId())
            .append("imagePath", getImagePath())
            .append("score", getScore())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
